package com.hu.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hu.auth.model.Menu;
import com.hu.auth.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<Long> getRoleIdByUserId(@Param("id") Long id);

    List<String> getRoleNameByUserId(@Param("id") Long id);

    List<Menu> getMenuByRoleIds(@Param("roleIds") List<Long> roleIds);

}